cmake_minimum_required(VERSION 2.6)
project(ShootUp)

set (PROJECT_LOWER shootup)
set (VERSION 0.1.0)

find_package(SDL REQUIRED)
find_package(SDL_image REQUIRED)

if (SDL_FOUND)
  message(STATUS "SDL found!")
  include_directories(SDL_INCLUDE_DIR)
else (SDL_FOUND)
  message(FATAL_ERROR "SDL not found!")
endif (SDL_FOUND)

set (LIBS SDL SDL_image SDL_ttf SDL_mixer)
set (DATA_DIR_PATH ${CMAKE_SOURCE_DIR}/data)

configure_file(config.h.in ${CMAKE_BINARY_DIR}/config/config.h)
include_directories(${CMAKE_BINARY_DIR}/config/)

add_subdirectory(src)